package com.yhb.myshop.web.admin.service;

import com.yhb.myshop.commons.entity.BaseResult;
import com.yhb.myshop.domain.BaseEntity;
import com.yhb.myshop.web.admin.dao.BaseDao;
import com.yhb.myshop.web.admin.web.validator.EntityValidator;
import org.apache.commons.lang3.StringUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.util.DigestUtils;

import java.util.Date;

public interface BaseService<T extends BaseEntity> {

    BaseResult create(T model);

    T getById(int id);

    BaseResult update(T model);

    BaseResult delete(int id);

}
